package com.example.ttt;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/ttt")
public class TTTController {

    @RequestMapping("/list")
    public LocalDateTime list() {
        return LocalDateTime.now();
    }

    @RequestMapping("/lll")
    public Map<String, Object> lll() {
        HashMap<String, Object> hashMap = new HashMap<>();
        hashMap.put("code", 200);
        hashMap.put("message", "success");
        return hashMap;
    }


}
